import { getMQAccountData } from '@/api/warehouse';
import { TableData, deviceCode } from '@/types/table';
import { DeptsQuery } from '@/types/depts';

export default async function mqAccount(params?: DeptsQuery | deviceCode): Promise<TableData> {
    const { content, totalElements } = await getMQAccountData(params);

    return {
        list: content,
        total: totalElements,
    };
}
